package com.lanou3g.ptp.organize.mapper;

import com.lanou3g.ptp.entity.Clazz;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ClazzMapper {
    void addMajor(Clazz clazz);

    Clazz findById(Long id);

    List<Clazz> findByIds(Long[] ids);

    Clazz findByName(String name);

    List<Clazz> findAll();

    void updateById(@Param("id") Long id, @Param("clazz") Clazz clazz);

    void deleteById(Long id);

    void deleteByIds(Long[] ids);
}
